package com.example.april.pojo;

import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.util.HashSet;
import java.util.Map;
import java.util.Set;

@Data
public class NewCustomer {
    @TableField(exist = false)
    public static Set<String> attrs = new HashSet<>();

    String id;

    Map<String,String> ext;

    public Map<String,String> getExt() {
        return ext;
    }

    public void setExt(String ext) {
        Map map = JSON.parseObject(ext, Map.class);
        this.ext = map;
    }
    public void postSetExt(Map<String,String> ext) {
        this.ext = ext;
    }
}
